<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			body{
				text-align: center;
				background-image: url("../images/zty.jpg");
			}
			h1{
				font-size: 50px;
			}
			p{
				font-size: 30px;
			}
		</style>
	</head>
	<body>
		<div class="container cont">
			<h1>状态页</h1>
			<h2></h2>
			<p>3秒后自动回到首页</p>
		</div>
		<script src="../js/jquery-1.11.3.js"></script>
		<script type="text/javascript">
			$("h2").html(sessionStorage.state);
			
			setInterval(()=>{
				var s=parseInt($("p").html());
				$("p").html(s-1+"秒后自动回到首页");
				if(s==0){
					location="index.html"
				}
				
			},1000)
		</script>
	</body>
</html>
